// 子应用名称管理
export const childMap = {
  vipCar: "vipCar",
  vipBasic: "vipBasic",
  vipRailway: "vipRailway",
  ownerPc: "ownerPc",
  disCenter: "disCenter",
  tradePc: "tradePc",
  merchantPc: "merchantPc",
  helpCenter: "helpCenter",
}
// 子应用环境配置
export const childDomianMap = {
  [childMap.vipCar]: {
    dev: "//dvip.clxkj.cn/",
    local: "//localhost:4201/",
    test: "//vip.clxkj.cn/",
    pre: "//pvip.clxkj.cn/",
    prod: "",
  },
  [childMap.vipBasic]: {
    dev: "dvipbasic.clxkj.cn/",
    local: "//localhost:8081/",
    test: "//vipbasic.clxkj.cn/",
    pre: "//pvipbasic.clxkj.cn/",
    prod: "",
  },
  [childMap.vipRailway]: {
    dev: "//drailway.clxkj.cn/",
    local: "//localhost:8080/",
    test: "//railway.clxkj.cn/",
    pre: "//prailway.clxkj.cn/",
    prod: "",
  },
  [childMap.ownerPc]: {
    dev: "//dhz.clxkj.cn/",
    local: "//localhost:8100/",
    test: "//hz.clxkj.cn/",
    pre: "//phz.clxkj.cn/",
    prod: "",
  },
  [childMap.disCenter]: {
    local: "//localhost:8083/",
  },
  [childMap.tradePc]: {
    dev: "//dtpc.clxkj.cn/",
    local: "//localhost:8085/",
    test: "//tpc.clxkj.cn/",
    pre: "//ptpc.clxkj.cn/",
    prod: "",
  },
  [childMap.merchantPc]: {
    dev: "//dmpc.clxkj.c/",
    local: "//localhost:8600/",
    test: "//mpc.clxkj.c/",
    pre: "//pmpc.clxkj.c/",
    prod: "",
  },
  [childMap.helpCenter]: {
    dev: "//dhelp.clxkj.cn/",
    local: "//localhost:8099/",
    test: "//help.clxkj.cn/",
    pre: "//phelp.clxkj.cn/",
    prod: "",
  },
}

// 保活子应用配置
export const aliveChildren = {
  [childMap.vipCar]: true,
  // [childMap.disCenter]: true,
  [childMap.vipBasic]: true,
  [childMap.vipRailway]: true,
  [childMap.tradePc]: true,
  [childMap.disCenter]: true,
  [childMap.helpCenter]: false, // 个人中心做成非保活
}
// 所有的菜单
export const MENUS = [
  {
    name: "VIP基础设置",
    key: 2,
    link: "/vipBasic",
  },
  {
    name: "VIP铁运",
    key: 3,
    link: "/vipRailway",
  },
  {
    name: "调度中心",
    key: 5,
    link: "/disCenter",
  },
  {
    name: "交易平台",
    key: 6,
    link: "/tradePc",
  },
  {
    name: "帮助中心",
    key: 7,
    link: "/helpCenter",
  },
]
